package org.example.testcode.helper;


import java.util.ArrayList;
import java.util.List;

public class PageResult<T> extends BaseResult {
    public static final PageResult<?> EMPTY = new PageResult(0, new ArrayList());
    private int recordCount;
    private List<T> result;

    public PageResult() {
    }

    public PageResult(int recordCount, List<T> result) {
        this.recordCount = recordCount;
        this.result = result;
    }

    public int getRecordCount() {
        return this.recordCount;
    }

    public List<T> getResult() {
        return this.result;
    }

    public void setRecordCount(final int recordCount) {
        this.recordCount = recordCount;
    }

    public void setResult(final List<T> result) {
        this.result = result;
    }

    public String toString() {
        return "PageResult(recordCount=" + this.getRecordCount() + ", result=" + this.getResult() + ")";
    }
}
